import redis.clients.jedis.Jedis;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2017/11/12 2:22
 */
public class redis客户端 {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("127.0.0.1", 6379, 3000);
        jedis.publish("laowang", "大家好,这是laowang频道发出来的消息");
    }
}
